package com.example.teachingevaluationsystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 王妍
 * @since 2022-02-20
 */
@Getter
@Setter
@TableName("menu")
@ApiModel(value = "Menu对象", description = "")
public class Menu implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("菜单名")
  @TableField("name")
  private String name;

  @ApiModelProperty("父菜单id")
  @TableField("parent_id")
  private Long parentId;

  @ApiModelProperty("菜单url")
  @TableField("url")
  private String url;

  @ApiModelProperty("创建时间")
  @TableField(value = "create_time", fill = FieldFill.INSERT)
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;
}
